﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using IServices;
using Services;
using UniversityManagerWebSite.Models.Validation;
using GestionLinqLibData;
using System.Data.Linq;

namespace UniversityManagerWebSite.ViewModels
{
    public class NotesViewModel
    {
        public SelectList Matieres { get; set; }
        public SelectList Types { get; set; }

        IMatiereService _matiereService;
        ITypeExamService _typeExamService;

        public NotesViewModel()
        {
            _matiereService = new MatiereService(null);
            _typeExamService = new TypeExamService(null);
            Matieres = new SelectList(_matiereService.ListMatieres().Select(m => m.nom_matiere).ToList());
            Types = new SelectList(_typeExamService.ListTypes().Select(t => t.nom_exam).ToList());

        }
    }
}